import { createApp } from 'vue'
import 'virtual:uno.css'
import '@/assets/styles/index.scss'
import App from './App.vue'
import { setupStore } from '@/store'
import { router, setupRouter } from '@/router'
import { setupRouterGuard } from '@/router/guard'
import 'virtual:svg-icons-register'

async function bootstrap() {
  const app = createApp(App)
  // 配置 store
  setupStore(app)
  // 配置路由
  setupRouter(app)
  // 配置路由守卫
  setupRouterGuard(router)

  app.mount('#app')
}

bootstrap()
